#include<bits/stdc++.h>

using namespace std;

//二重循环
int main() {
    int n = 10;
    int x, y;
    for (x = 0; x < n; x++) {
        for (y = 0; y < n; y++) {
            if (x == 0 || y == 0 || x == n - 1 || y == n - 1 || x == y || x + y == n - 1)
                printf("# ", x, y);
            else
                printf(". ");
        }
        printf("\n");
    }
    return 0;
}
